import axios from '@/libs/api.request'
import qs from 'qs'

export const getTableData = (params) => {
  return axios.request({
    url: 'admins/checkoutRecord/mtuPage?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const echart = (params) => {
  return axios.request({
    url: 'admins/checkoutRecord/conditionMtuPage?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const add = (data) => {
  return axios.request({
    url: 'admins/checkoutRecord/addMtu',
    data: qs.stringify(data),
    method: 'post'
  })
}

export const update = (data) => {
  return axios.request({
    url: 'admins/checkoutRecord/editMtu',
    data: qs.stringify(data),
    method: 'post'
  })
}

export const del = (data) => {
  return axios.request({
    url: 'admins/checkoutRecord/deleteMut',
    data: qs.stringify(data),
    method: 'post'
  })
}


//导出
export const exp = (params) => {
  return axios.request({
    url: 'admins/checkoutRecord/mtuDownload?t='+new Date().getTime(),
    method: 'get',
    responseType: 'blob',
    params
  })
}
